package shiyan3;

public class SelectCourse {

	public static void main(String[] args) {
		Course course = new Course();
		System.out.println(course.toString());
		Student stu0 = new Student(2019310858, "张天", "计算机", "男");
		Student stu1 = new Student(2019310881, "小于", "计算机", "男");
		Student stu2 = new Student(2019310882, "小天", "物联网", "女");
		Student stu3 = new Student(2019310883, "小张", "物联网", "男");
		Teacher tea0 = new Teacher(2019310884, "张老师", "性别：男");
		Teacher tea1 = new Teacher(003, "张老师", "性别：女");
		Teacher tea2 = new Teacher(003, "李老师", "性别：女");
		Course cour0 = new Course(001, "高数");
		Course cour1 = new Course(002, "离散");
		Course cour2 = new Course(003, "java");
		stu0.addCourse(cour0);
		stu0.addCourse(cour2);
		stu0.addCourse(cour1);
		stu1.addCourse(cour2);
		stu1.addCourse(cour0);
		stu2.addCourse(cour1);
		stu3.addCourse(cour0);
		stu3.addCourse(cour2);
		tea0.addCourse(cour2);
		tea1.addCourse(cour1);
		tea2.addCourse(cour0); 
		stu1.removeCourse(cour2); 

		stu0.displayCourse();
		stu1.displayCourse();
		stu2.displayCourse();
		stu3.displayCourse(); 

		tea0.displayCourse();
		tea1.displayCourse();
		tea2.displayCourse(); 

		cour0.displayStudent();
		cour1.displayStudent();
		cour2.displayStudent(); 
	}

}
